import { ref } from "vue"
import { listVmType } from "../../../api/manage/vmType"
import { loadAllParams } from "../../../api/page"

export const useVmType = () => {
  const vmTypeList = ref([])

  const getVmTypeList = async () => {
    const { rows } = await listVmType(loadAllParams)
    vmTypeList.value = rows
  }

  onMounted(() => {
    getVmTypeList()
  })

  return {
    vmTypeList
  }
}